use crate::config::app_config::CONFIG;
pub async fn env() {
    let envs = &CONFIG.log.env;
    let level = envs
        .iter()
        .map(|p| format!("{}={}", p.name, p.level))
        .collect::<Vec<String>>()
        .join(",");
    std::env::set_var("RUST_LOG", level);
}
